package com.tongtech.space.common.enums;

/**
 * 推荐类型ContentType枚举类
 *
 * @author jinjiayu
 * @since 2020/12/14
 */
public enum RecommendContentTypeEnums {

    /**
     * 0自然人, 1法人
     */
	RECOMMEND_SCENE(0, "主题"),
    RECOMMEND_MATTER(1, "事项"),
    RECOMMEND_QAQuestion (2, "问答"),
    RECOMMEND_SERVICE(3, "专题"),
    RECOMMEND_POLICY(4, "政策"),
    RECOMMEND_MULTISCENE(5, "多场景"),
    ;


    private int code;

    private String des;

    RecommendContentTypeEnums(int code, String des) {
        this.code = code;
        this.des = des;
    }
    public static RecommendContentTypeEnums get(int code) {
        for (RecommendContentTypeEnums type : RecommendContentTypeEnums.values()) {
            if (code == type.getCode()) {
                return type;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

}
